import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App'
import './index.css'
import 'antd/dist/antd.css';

import { HashRouter, BrowserRouter } from 'react-router-dom'



// 根据环境自动切换路由模式
const Router = process.env.NODE_ENV === 'production' ? BrowserRouter : HashRouter


ReactDOM.createRoot(document.getElementById('root')).render(

  // <React.StrictMode>
  <Router>
    <App />
  </Router>
  // </React.StrictMode>
)
